package com.lyj.mall.pojo;

import cn.hutool.core.util.IdUtil;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * @author  lyj
 * @date  2020/1/11 11:20
 */
@ApiModel(value="com-lyj-mall-pojo-LogInfo")
@Data
@TableName(value = "mall_log")
public class LogInfo implements Serializable {
    /**
     * 日志id
     */
    @TableId(value = "log_id", type = IdType.INPUT)
    @ApiModelProperty(value="日志id")
    private String logId = IdUtil.fastSimpleUUID();

    /**
     * 日志类型
     */
    @TableField(value = "log_type")
    @ApiModelProperty(value="日志类型")
    private String logType;

    /**
     * 事件
     */
    @TableField(value = "content")
    @ApiModelProperty(value="事件")
    private String content;

    /**
     * 操作人
     */
    @TableField(value = "operator")
    @ApiModelProperty(value="操作人")
    private String operator;

    /**
     * 触发时间
     */
    @TableField(value = "time")
    @ApiModelProperty(value="触发时间")
    private Date time = new Date();

    @TableField(value = "params")
    @ApiModelProperty(value="参数")
    private String params;

    private static final long serialVersionUID = 1L;
}